package com.baor.controller;

import com.baor.fegin.TeamFegin;
import com.baor.service.TeamService;
import com.baor.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping(value = "/team")
public class TeamController {
    @Autowired
    private TeamService teamService;
    @Autowired
    private TeamFegin teamFegin;
    @RequestMapping(value = "/addHolder")
    public R addHolder(@RequestBody Map<String, Object> map) {
        return this.teamFegin.addHolder(map);

    }
    @RequestMapping(value = "/getAllTeams-")
    public R getAllTeams(@RequestBody Map<String, Object> map) {
        return this.teamFegin.getAllTeams(map);

    }
    @RequestMapping(value = "/toBalance")
    public R toBalance(@RequestBody Map<String,Object> params){
        return this.teamService.toBalance(params);
    }
    @RequestMapping(value = "/toLockedBalance")
    public R toLockedBalance(@RequestBody Map<String,Object> params){
        return this.teamService.toBalance(params);
    }
    @RequestMapping(value = "/toWX")
    public R toWX(@RequestBody Map<String,Object> params){
        return this.teamService.toWX(params);
    }

}
